package deltax.common.error
{
    import flash.utils.*;

    public class SingletonMultiCreateError extends Error
    {
        private var m_singletonClass:Class;

        public function SingletonMultiCreateError(param1:Class, param2:String = null)
        {
            this.m_singletonClass = param1;
            param2 = param2 || "can\'t create mulitple instance of singleton class: " + getQualifiedClassName(param1);
            super(param2);
            return;
        }// end function

        public function get singletonClass() : Class
        {
            return this.m_singletonClass;
        }// end function

    }
}
